import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listAll(query) {
  return request({
    url: '/his/allDoc/list',
    method: 'get',
    params: query
  })
}

export function DocTowlist(query) {
  return request({
    url: '/his/allDoc/DocTowlist',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getAll(id) {
  return request({
    url: '/his/allDoc/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addAll(data) {
  return request({
    url: '/his/allDoc',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateAll(data) {
  return request({
    url: '/his/allDoc',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delAll(id) {
  return request({
    url: '/his/allDoc/' + id,
    method: 'delete'
  })
}

// 导出【请填写功能名称】
export function exportAll(query) {
  return request({
    url: '/his/allDoc/export',
    method: 'get',
    params: query
  })
}



export function importTemplate(query) {
  return request({
    url: '/his/allDoc/importTemplate',
    method: 'get',
    params: query
  })
}

export function importData(query) {
  return request({
    url: '/his/allDoc/importData',
    method: 'get',
    params: query
  })
}

export function importTemplate2(query) {
  return request({
    url: '/his/allDoc/importTemplate2',
    method: 'get',
    params: query
  })
}

export function importData2(query) {
  return request({
    url: '/his/allDoc/importData2',
    method: 'get',
    params: query
  })
}
